﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.OrangeDog.Model
{
    public class Reply:BaseModel
    {
        
        [ForeignKey(nameof(Comment.Id))]
        public int pid { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(2000), Column(TypeName = "varchar(2000)")]
        [Display(Name = "回复内容")]
        public string content { get; set; }
        public int parentId { get; set; }
        public int GoodPraise { get; set; }
        [ForeignKey(nameof(UsersInfo.Id))]
        public int uid { get; set; }
    }
}
